import request from "../utils/request.js"

const http = {}

const constApi = {
  //大屏刷新频率
  getIndexTime: {
    url: '/splunk_fullscreen/api/windowTime',
    method: 'post'
  },
  //应用系统日志告警('sd_full_sys_app.csv')
  //日志告警详情表('sd_full_sys_msg.csv')
  //日志告警详情表字段展示顺序("sd_full_sys_msg_title.csv")
  //日志占比图像('sd_full_sys_pie.csv')
  getQueryCsvList:{
    url:'/splunk_fullscreen/api/queryCsv/queryList',
    method:'post'
  }
}

for(let key in constApi){
	let api = constApi[key]
	http[key] = async function(params,headers){
		let response = await request.globalRequest(api.url,api.method,params,headers)
		return response
	}
}

export default http
